//
//@File    :	13.9_usebrass1.cpp
//@Time    :	2021/09/19 11:42:56
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	testing bank account classes
//

//complie with brass.cpp
#include <iostream>
#include "13.7_brass.h"

int main()
{
    using std::cout;
    using std::endl;

    Brass Piggy("Porcelot Pigg", 381299, 4000.00);
    BrassPlus Hoggy("Hoatito Hogg", 382288, 3000.00);
    Piggy.ViewAcct();
    cout << endl;
    Hoggy.ViewAcct();
    cout << endl;
    cout << "Depositing $1000 into the Hogg Account:\n";
    Hoggy.Deposit(1000.00);
    cout << "New balance:$" << Hoggy.Balance() << endl;
    cout << "Withdrawing $4200 from the pigg Account:\n";
    Piggy.Withdraw(4200.00);
    cout << "Pigg account balance:$" << Piggy.Balance() << endl;
    cout << "Withdrawing $4200 from the Hogg Account:\n";
    Hoggy.Withdraw(4200.00);
    Hoggy.ViewAcct();

    system("pause");
    return 0;
}